package com.id.coinscleaner.viewmodel

import androidx.lifecycle.ViewModel
import com.id.coinscleaner.utils.df2
import com.id.coinscleaner.utils.getAvailMemory
import com.id.coinscleaner.utils.getMemoryUsage
import com.id.coinscleaner.utils.getTotalMemory

/**
 * Created by YiGo on 2022/8/2.
 */
class MemoryAndGameViewModel : ViewModel() {
    val allStore = "${getTotalMemory()} GB"

    val usedStore = "${df2.format(getAvailMemory())} GB"

    val rateStore = "${getMemoryUsage().toInt()}%"
}